<div class="nav">
    <a class="sel" href="{:U('Goods/recycle')}">商品回收站</a>
</div>
<div class="search">
    <form method="get" action="">
        商品标题：<input type="text" name="title" id="title" value="{$title}" class="input1" />&nbsp;&nbsp;
       <select name="cat_id" id="cat_id" class="sel1">
            <option value="">所有类别</option>
            <volist name="cat_list" id="item_c">
                <option value="{$item_c.cat_id}">{$item_c.cat_name}</option>
            </volist>
        </select>&nbsp;&nbsp;
        <select name="brand_id" id="brand_id" class="sel1">
            <option value="">所有品牌</option>
            <volist name="brand_list" id="item_b">
                <option value="{$item_b.brand_id}">{$item_b.brand_name}</option>
            </volist>
        </select>&nbsp;&nbsp;
        
        &nbsp;<input type="submit" name="submit" value="搜索" class="btn_search" />
        &nbsp;<input type="submit" name="submit" value="一键清空回收站" class="btn_a2" />
        <input type="hidden" name="p" value="1" />
        <script type="text/javascript">
            $(function(){
                $('#cat_id').val('{$cat_id}');
                $('#brand_id').val('{$brand_id}');
             })
        </script>
    </form>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td width="80px">商品图片</td>
                <td>商品标题</td>
                <td width="100px">所属类别</td>
                <td width="80px">所属品牌</td>
                <td width="60px"  style="display:none">状态</td>
                <td width="80px">发布时间</td>
                <td width="150px">操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td><a href="__ROOT__{$list.picture}" target="_blank"><img src="__ROOT__{$list.picture}" width="80px" alt="点击查看大图" /></a></td>
                <td style="text-align:left;line-height:18px;">
                    <a href="{:U('Home/Goods/index',array('id'=>$list['goods_id']))}" target="_blank" style="font-weight:bold;">{$list.goods_name}</a>
                </td>
                <td>{$list.cat_name}</td>
                <td>{$list.brand_name}</td>
                <td  style="display:none">{$list.status}</td>
                <td>{$list.time_create|date='Y-m-d H:i',###}</td>
                <td><a class="btn_a" href="{:U('reduction',Array('goods_id'=>$list['goods_id']))}">还原</a>&nbsp;
                    <a class="btn_a2" href="{:U('del',Array('goods_id'=>$list['goods_id']))}" onclick="return confirm('确定删除吗？此操作不可恢复？')">彻底删除</a></td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="8"><div class="page">{$page}</div></td></tr>
        </tfoot>
    </table>
</div>
